# Maintainer:
pkgname=py3-setuptools-gettext
pkgver=0.1.8
pkgrel=0
pkgdesc="setuptools plugin for building mo files"
url="https://github.com/breezy-team/setuptools-gettext"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3 gettext"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/breezy-team/setuptools-gettext/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/setuptools-gettext-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
d74ccba4c244beb24ea2c2aebfe204e423d6a85cbd01acebaf78e236514cae16793190c0bfebe9ed8bff554a02fe118513d0c691e196d426f5767b897c6df4d5  py3-setuptools-gettext-0.1.8.tar.gz
"
